﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace PlaystationNetworkAPI.WebService
{
    /// <summary>
    /// Collect information from Playstation Netowrk Information.
    /// </summary>
    [WebService(Namespace = "http://psnapi.codeplex.com/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class PlaystationNetworkAPI : System.Web.Services.WebService
    {

        /// <summary>
        /// Get the Playstation Network user profile information.
        /// </summary>
        /// <param name="psnId">Playstation Network Id that will used to get the information.</param>
        /// <param name="location">Location from the Playstation Network the information will be collected.</param>
        /// <returns>Playstation Network user profile information.</returns>
        [WebMethod]
        public Core.Profile GetProfile(string psnId, string location)
        {
            return Core.Profile.NewProfile(psnId, location);
        }
    }
}